package com.runa.rccprotocol.task;

import lombok.Data;
import org.springframework.http.HttpMethod;

/**
 * 2024/9/6 15:19
 * zhangYB
 */
@Data
public class Task implements Comparable<Task> {

    private String task;

    private String holdInfo;
    private Integer priority = 0;

    public Task() {
    }

    public Task(String task, String holdInfo, Integer priority) {
        this.task = task;
        this.holdInfo = holdInfo;
        this.priority = priority;
    }

    @Override
    public int compareTo(Task o) {
        return o.getPriority() - priority;
    }

}
